import xlwings as xw

app = xw.App(visible=True,add_book=False)
app.display_alerts = False
app.screen_updating = False

# 文件位置：filepath，打开test文档，然后保存，关闭，结束程序
filepath = r'test.xlsx'
wb = app.books.open(filepath)

sht= wb.sheets['Sheet1']
rng = sht['A1:D38']

print(rng.value)

# wb.save()
wb.close()
app.quit()